package com.jinmdz.fmis.api.admin.model.goodsservice;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 物品包子物品
 *
 * @author GuanKui
 * @date 2020/3/11 13:22
 */
@ApiModel(value = "物品包子物品", description = "物品包子物品")
public class GoodsServiceSavePackageItem extends BaseBean {

    /**
     * 包内服务项目id，外键【表：service_item，关联：id】
     */
    @AnValidate(name = "包内服务项目主键", required = true, code = EValidateCode.GREATER_ZERO)
    @ApiModelProperty(value = "包内服务项目主键", name = "serviceItemId", position = 1)
    private Integer serviceItemId;

    /**
     * 项目名称
     */
    @AnValidate(name = "项目名称")
    @ApiModelProperty(value = "项目名称", name = "itemName", position = 2)
    private String itemName;

    /**
     * 包内当前物品总数量
     */
    @AnValidate(name = "包内当前物品总数量", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "包内当前物品总数量", name = "itemNumber", position = 3)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal itemNumber;

    public Integer getServiceItemId() {
        return serviceItemId;
    }

    public GoodsServiceSavePackageItem setServiceItemId(Integer serviceItemId) {
        this.serviceItemId = serviceItemId;
        return this;
    }

    public String getItemName() {
        return itemName;
    }

    public GoodsServiceSavePackageItem setItemName(String itemName) {
        this.itemName = itemName;
        return this;
    }

    public BigDecimal getItemNumber() {
        return itemNumber;
    }

    public GoodsServiceSavePackageItem setItemNumber(BigDecimal itemNumber) {
        this.itemNumber = itemNumber;
        return this;
    }
}
